<?php
echo "<pre>";
print_r(get_loaded_extensions());
print_r(get_extension_funcs('sockettj'));
$url = "http://localhost/get.php?a=1&b=2";
$method = "post";
$post_data = "a=1&b=2&c=3&submit=submit";
$result = sockettj_http_get($url, $method, $post_data, 1);
echo $result;

$ip = "192.168.1.254";
$port = 21;
$username = "degui";
$password = "asdf321";
$dirname = "/degui";
$filename = "env_param.c";
$save_path = "/tmp/asdf1.bin" . time();
echo sockettj_ftp_get($ip, $port, $username, $password, $dirname, $filename, $save_path);
var_dump($save_path);
echo file_get_contents($save_path);




$dirname = "/degui";
$filename = __FILE__;
echo sockettj_ftp_put($ip, $port, $username, $password, $dirname, $filename);

